package com.frxuexi.lib_http

import retrofit2.Retrofit

object NetworkFactory {
    lateinit var retrofit: Retrofit

    fun factory(httpType: HttpType):Retrofit{
        when(httpType){
             HttpType.NONE-> retrofit=NoneRetrofit().createRetrofit()
            HttpType.TOKEN-> retrofit=TokenRetrofit().createRetrofit()
        }
        return retrofit
    }
}